#ifndef _IN_PER_UART_INIT_H_
#define _IN_PER_UART_INIT_H_

#ifdef __cplusplus
extern "C" {
#endif

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <termios.h>
#include <errno.h>
#include <string.h>
#include <pthread.h>
#include <signal.h>
#include "InCommon.h"

#define DEF_HEAD_FIRST              0x55 //Frame header first byte
#define DEF_HEAD_SECOND             0xaa //Frame header second byte
#define DEF_HEAD_VERSION            0x00 //Module send frame protocol version number
#define	DEF_HEAD_LENGTH             6
#define	DEF_BODY_LENGTH             506
#define	DEF_PER_UART_BUF_SIZE       (DEF_HEAD_LENGTH + DEF_BODY_LENGTH)

#define DEF_FEED_LIST_MAX_NUM       20
#define DEF_PER_UART_READ_MS        100

Com_s32 Ext_InPer_Uart_Fd(Com_void);
Com_void Ext_InPer_Uart_Close(Com_void);
Com_s32 Ext_InPer_Uart_Opt_Init(Com_void);
Com_s32 Ext_InPer_Uart_Write(Com_pu8 buff,Com_u32 len);

#ifdef __cplusplus
}
#endif

#endif
